package com.topisv.tms.exception;

/**
 * 入库的异常代码
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-6-23      CC            1.0           Create
 */
public enum InStorageBillErrorCode implements IErrorCode {
	COUNT_NUM_ERROR("S1001","SKU [%s] 大于预约数."),
	UP_NUM_ERROR("S1002","上架数量和分配数量不一致.请核对"),
	CONFIRM_ERROR("S1003","入库单[%s]已确认,不能重复确认"),
	/** 上架数量已超出分配数量.请刷新后核对 */
	UPNUM_OVERTOP_ERROR("S1004","上架数量已超出分配数量.请刷新后核对"),
	;
	InStorageBillErrorCode(String code, String message) {
		this.code = code;
		this.message = message;
	}

	private String code;
	private String message;

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public String getMessage() {
		return message;
	}

}
